package com.tsy.server.system.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户信息视图对象
 */
@Data
@ApiModel(value = "用户信息", description = "用户的详细信息")
public class UserInfoVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", example = "1")
    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", example = "zhangsan@qq.com")
    private String email;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", example = "张三")
    private String nickname;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像URL", example = "https://example.com/avatar.jpg")
    private String avatar;

    /**
     * 状态：0-禁用，1-启用
     */
    @ApiModelProperty(value = "状态：0-禁用，1-启用", example = "1")
    private Integer status;

    /**
     * 用户当前组织ID
     */
    @ApiModelProperty(value = "用户当前组织ID", example = "1")
    private Long currentOrgId;

    /**
     * 最后登录时间
     */
    @ApiModelProperty(value = "最后登录时间", example = "2023-01-01 12:00:00")
    private LocalDateTime lastLoginTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2023-01-01 10:00:00")
    private LocalDateTime createTime;

    /**
     * 用户角色权限信息
     */
    @ApiModelProperty(value = "用户角色权限信息")
    private RolePermissionVO rolePermissions;
}